<template>
  <div>
    sonComp
    {{ money }}
    <button @click="costMoney">花钱</button>
  </div>
</template>

<script>
export default {
  props: {
    money: {
      type: Number,
      required: true
    }
  },
  methods: {
    costMoney() {
      this.$emit('costMoney', this.money - 10)
    }
  }
}
</script>

<style>

</style>
